package com.example.win.android_banduyujia.http.request;

import com.example.win.android_banduyujia.http.UrlContext;

import java.util.Map;

/**
 * Created by Win on 2015/10/13.
 */
public class ApplyRequest extends BaseHttpRequest {
    public static final String URL = UrlContext.Url_APPlycasher.getContext();

    private String  token;
    private String  cash_code;
    private String  amount;
    private String  realname;
    private String  account;

    public ApplyRequest(String mAccessToken, String mCashcode, String mAmount, String mRealname, String mAccount) {
        this.token = mAccessToken;
        this.cash_code = mCashcode;
        this.amount = mAmount;
        this.realname = mRealname;
        this.account = mAccount;
    }

    @Override
    protected String toRequestURL() {
        return URL;
    }

    @Override
    protected String toHttpMethod() {
        return HTTP_METHOD_POST;
    }

    @Override
    protected void toHttpRequestParams(Map<String, String> params) {
        params.put("token", token);
        params.put("cash_code", cash_code);
        params.put("amount", amount);
        params.put("realname", realname);
        params.put("account", account);
    }
}
